﻿<%@ Page Title="" Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" CodeBehind="RetrieveGuestParticular.aspx.cs" Inherits="DelonixRegiaHMSys.UI.WebForms.RetrieveGuestParticular" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div id="wrapper">
			<div id="content">
                 <h2>Guest Particulars</h2>
                <a href="GuestParticular.aspx">Add Guest</a>
                 
                     <asp:GridView ID="GridViewGP" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridViewGP_SelectedIndexChanged">
                         <Columns>
                             <asp:BoundField DataField="guestID" HeaderText="Guest ID" />
                             <asp:BoundField DataField="guestLastName" HeaderText="Guest Last Name" />
                             <asp:BoundField DataField="guestFirstName" HeaderText="Guest First Name" />
                             <asp:BoundField DataField="homeAddress" HeaderText="Home Address" />
                             <asp:BoundField DataField="nationality" HeaderText="Nationality" />
                             <asp:BoundField DataField="contactNum" HeaderText="Contact Number" />
                             <asp:BoundField DataField="emailAddress" HeaderText="Email Address" />
                             <asp:BoundField DataField="mailAddress" HeaderText="Mail Address" />
                             <asp:TemplateField HeaderText="Remove">
                                 <ItemTemplate>
                                     <asp:LinkButton ID="DeleteButton" runat="server" OnClick="DeleteButton_Click" CommandArgument='<%# Eval("creditCardNum") %>' Text="Delete" />
                                 </ItemTemplate>
                             </asp:TemplateField>
                             <asp:TemplateField HeaderText="Edit">
                                 <ItemTemplate>
                            <asp:LinkButton ID="UpdateButton" runat="server" OnClick="UpdateButton_Click" CommandArgument='<%# Eval("creditCardNum") + ";" + Eval("cardHolderName") + ";" + Eval("cardType") + ";" + Eval("cardExpirationDate") %>' Text="Update" />
                        </ItemTemplate>
                             </asp:TemplateField>
              
                           
                         </Columns>
                     </asp:GridView>
                     </div>
                   
                     <div id="left">
                         <h3>Welcome ___!<br />
                             <br />
                             This the List of guest particulars</h3>
                         <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
             <p>
                &nbsp;<asp:Button ID="MainpageButton" runat="server" Height="35px" Text="Mainpage" Width="89px" OnClick="MainpageButton_Click" />
                 <asp:ConfirmButtonExtender ID="MainpageButton_ConfirmButtonExtender" runat="server" ConfirmText="Move on to the next page?" Enabled="True" TargetControlID="MainpageButton">
                 </asp:ConfirmButtonExtender>
            </p>

                             </div>
                         </div>
</asp:Content>
